package exabase.meta;

import java.io.Serializable;
import java.util.logging.Logger;

import exabase.data.Hash;

public class Meta implements Serializable {
	private static final long serialVersionUID = 3985361723089943565L;

	private static Logger logger = Logger.getLogger(Meta.class.getName());

	protected String metaFileName;
	protected Hash hash;

	public void setHash(Hash hash) {
		this.hash = hash;
	}

	public Meta(String metaFileName) {
		logger.finer("creating new Meta(" + metaFileName + ")");
		this.metaFileName = metaFileName;
	}

	public Meta(String metaFileName, Hash hash) {
		logger.finer("creating new Meta(" + metaFileName + ", "
				+ hash.toString() + ")");
		this.metaFileName = metaFileName;
		this.hash = hash;
	}

	public String getMetaFileName() {
		return metaFileName;
	}

	public Hash getHash() {
		return hash;
	}
}
